Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix slow Process table #463

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sbothma
Copy link

@sbothma sbothma commented Dec 22, 2024

The Process table is unusable when the node is running many processes.

  • avoid keeping process info for all processes in memory
  • avoid .sort, .take, and .map on extremely long lists
  • remains fast for hundreds of thousands of processes
  • only slow (3s) showing 5000 processes out of hundreds of thousands

 - avoid keeping process info for all processes in memory
 - avoid .sort, .take, and .map on extremely long lists
 - remains fast for hundreds of thousands of processes
 - only slow (3s) showing 5000 processes out of hundreds of thousands
@josevalim
Copy link
Member

Thank you for the PR @sbothma! Can you please look into failing tests? I also wonder if we should add Enum.take_sort to Elixir... although that's a separate discussion. :)

@sbothma sbothma marked this pull request as draft December 23, 2024 05:27
@sbothma
Copy link
Author

sbothma commented Dec 23, 2024

This is still hitting a bottleneck somewhere around 200 000 processes. I'll split out the take_sort implementation. My goal here is to be able to have the Process table respond in less than a second (the minimum auto update rate). At least up to the default process limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants